<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>立体模型</title>
    <link rel="stylesheet" href="./导航栏.css">
    <style>
        .big{
            perspective: 800px;
            perspective-origin: top right;
            width: 400px;
            height: 400px;
        }
        .xiao{
            position: absolute;
            width: 200px;
            height: 200px;
            transform-style: preserve-3d;
            margin: auto;
            left: 70%;
            top: 80%;
            transform: translate(-50%,-50%);
            animation: move 10s linear infinite;
        }
        .side{
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0.6;
            border: 2px solid white;
            text-align: center;
            line-height: 200px;
        }
        .front{
            transform: translateZ(100px);
            background: url(../img/girl.jpg) no-repeat;
            background-size: 100%;
        }
        .back {
            background-color: #aa00ff;
            transform:  translateZ(-100px);
        }
        .left {
            background-color: #304ffe;
            transform: translateX(-100px) rotateY(-90deg);
        }
        .right {
            background-color: #0091ea;
            transform: translateX(100px) rotateY(90deg);
        }
        .top {
            background-color: #00bfa5;
            transform: translateY(-100px) rotateX(90deg);
        }
        .bottom {
            background-color: #64dd17;
            transform: translateY(100px) rotateX(-90deg);
        }
        @keyframes move {
            from {
                transform: translate(-50%, -50%) rotateY(0deg) rotateX(720deg) rotateZ(0deg);
            }
            to {
                transform: translate(-50%, -50%) rotateY(360deg) rotateX(0deg) rotateZ(360deg);
            }
        }
    </style>
</head>
<body>
    <div class="tou">
        <header>
            <ul>
                <li><a href="../首页.html">首页</a></li>
                <li><a href="./仿b站.html">仿b站</a></li>
                <li><a href="./伪元素(促销).html">伪元素(促销)</a></li>
                <li><a href="./图片悬停.html">图片悬停</a></li>
                <li><a href="./导航条.html">导航条</a></li>
                <li><a href="./浮动(图片定位).html">浮动(图片定位)</a></li>
                <li><a href="./浮动(环绕i).html">浮动(环绕)</a></li>
                <li><a href="./浮动(西游记).html">浮动(西游记)</a></li>
                <li><a href="./浮动.html">浮动</a></li>
                <li><a href="./浮动定位.html">浮动定位</a></li>
                <li><a href="./立体模型.html">立体模型</a></li>
                <li><a href="./购物车图标.html">购物车图标</a></li>
                <li><a href="./鼠标悬停.html">鼠标悬停</a></li>
                <li><a href="https://gitee.com/han-sunian/">仓库</a></li>
            </ul>
        </header>
    </div>
    <div class="big">
        <div class="xiao">
            <div class="side front"></div>
            <div class="side left">左</div>
            <div class="side right">右</div>
             <div class="side back">后</div>
            <div class="side top">顶</div>
            <div class="side bottom">底</div>
        </div>
    </div>
</body>
</html>